<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>医疗大数据分析平台</title>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/echarts-gl@2.0.9/dist/echarts-gl.min.js"></script>
    <link rel="stylesheet" href="../static/styles.css">
</head>
<body>
<div class="dashboard-container">
    <!-- 顶部标题区域 -->
    <div class="header">
        <div class="title">医疗大数据分析平台</div>
        <div class="datetime">
            <div class="time" id="current-time">00:00:00</div>
            <div class="week" id="current-date">2023年1月1日 星期一</div>
        </div>
    </div>

    <!-- 第一行 -->
    <div class="card">
        <div class="card-title">人次占比</div>
        <div class="visit-container" id="visit-container">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>

    <div class="card">
        <div class="card-title">病症诊断人数</div>
        <div class="chart-container" id="disease-chart">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>

    <div class="card">
        <div class="card-title">年龄分布</div>
        <div class="chart-container" id="age-chart">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>

    <!-- 第二行 -->
    <div class="card">
        <div class="card-title">手术数量趋势</div>
        <div class="chart-container" id="surgery-trend-chart">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>

    <div class="card">
        <div class="card-title">医疗耗材环比</div>
        <div class="supply-card" id="supply-card">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>

    <div class="card">
        <div class="card-title">人均医药费分布</div>
        <div class="chart-container" id="cost-chart">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>

    <!-- 第三行 -->
    <div class="card">
        <div class="card-title">当月出院环比</div>
        <div class="chart-container" id="discharge-chart">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>

    <div class="card">
        <div class="card-title">数据共享</div>
        <div class="scroll-table">
            <!-- 固定表头 -->
            <div class="table-header-fixed">
                <div class="header-col">医院名称</div>
                <div class="header-col">科室</div>
                <div class="header-col">共享数据量</div>
            </div>

            <!-- 滚动容器 -->
            <div class="scroll-container" id="shared-scroll-container">
                <!-- 内容由JS动态生成 -->
            </div>
        </div>
    </div>
    <div class="card">
        <div class="card-title">付费方式分布</div>
        <div class="chart-container" id="payment-chart">
            <div class="loading"><div class="loading-spinner"></div>数据加载中...</div>
        </div>
    </div>
</div>

<script src="../static/script.js"></script>
</body>
</html>